<template>
  <div class="app-container container-bg">
    <!--表格-->
    <Table ref="tableRef" @handleDispatch="handleDispatch" @handleAdd="handleAdd"/>
      <!--编辑/增加策略-->
    <Strategy ref="strategyRef" @getList="getList"/>
  </div>
</template>

<script>
import Table from './sub/Table'
import Strategy from './sub/dialog/Strategy'

export default {
  name: "MvCloudgateTerminalAccessStrategy",
  components: {
    Table,
    Strategy
  },
  data() {
    return {
    };
  },

  mounted() {
    this.getList();
  },

  methods: {
    getList () {
      this.$refs.tableRef.getList();
    },
    handleAdd (data) {
      this.$refs.strategyRef.open(data.title, data.arr);
    },
    handleDispatch (row, index) {
      this.$refs.dispatchRef.openDialog(row,index);
    }
  },
};

</script>
